//
//  GYPointsCell.m
//  GoodLuck
//
//  Created by 郭为勇 on 2018/3/17.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

static NSString *pointsCellIdentifier = @"pointsCellIdentifier";

#import "GYPointsCell.h"

@interface GYPointsCell ()

@property (weak, nonatomic) IBOutlet UILabel *pointNameLable;
@property (weak, nonatomic) IBOutlet UILabel *desLable;
@property (weak, nonatomic) IBOutlet UILabel *poinsLable;
@property (weak, nonatomic) IBOutlet UILabel *timeLable;

@end
@implementation GYPointsCell

+ (instancetype)cellWithTbaleView:(UITableView *)tableView {
    GYPointsCell *cell = [tableView dequeueReusableCellWithIdentifier:pointsCellIdentifier];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil] firstObject];
    }
    
    return cell;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}


- (void)setPoints:(GYPoints *)points {
    _points = points;
    
    //赋值
    self.pointNameLable.text = points.pl_desc;
    self.desLable.text = points.stagetext;
    self.poinsLable.text = [NSString stringWithFormat:@"%d",points.pl_points];
    self.timeLable.text = points.addtimetext;
}
@end
